<?php if($isAdmin): ?>
	<?php echo $this->Form->create('Tournament', array('controller'=>'Tournament', 'action'=>'addName')); ?>
	<?php echo $this->Form->input('name', array('empty'=>true, 'label'=>'Nazwa turnieju')); ?>
	<?php echo $this->Form->end('Dodaj'); ?>
<?php endif; ?>

<?php echo $this->Form->create('Tournament', array('controller'=>'Tournament', 'action'=>'goToView')); ?>
<?php echo $this->Form->input('tournament_id', array('empty'=>true,'options' => $tournaments, 'label'=>'Turniej')); ?>
<?php echo $this->Form->end('Pokaż'); ?>
